<style type="text/css">
.j-category,.j-area,.j-order,.w-sort__mask{ display:none;}
.cblock{ display:block;}
</style>
<SCRIPT type=text/javascript>
$(document).ready(function(){
	DP.app.posCity();
	DP.app.dealOverlay();
	DP.app.moreDeal();
	DP.app.slideNavi();
	DP.app.switchSearch();
	DP.cityEnName = "鞍山";
});
</SCRIPT>
<script src="style/jquery-1.9.1.min.js"></script>
<header class="w-index-header" mon="type=header">
<a id="city" class="city" href="#" mon="content=city">
{$city['name']}
</a>
<div class="arrow-down"></div>
<!--{if $login_user}-->
{$pagetitle}
<a class="logout" href="logout.php">退出</a>
<a class="user" href="my.php" mon="content=user">{$login_user['username']}</a>
<!--{else}-->
{$pagetitle}
<a class="login" onclick="_gaq.push(['_trackEvent', 'footer_login', 'click', '']);" href="login.php">登录/注册</a>
<!--<a class="login" onclick="_gaq.push(['_trackEvent', 'footer_register', 'click', '']);" href="signup.php">注册</a>-->
<!--{/if}-->
</header>

<!--城市-->
<section id="city_list" class="j-area w-sort__2col" mon="action=click"  style="min-height:100px; z-index:100; opacity:0.9">
<ul class="nav j-nav" mon="type=mainArea">
<!--${

/*城市列表*/

$shangquan = DB::LimitQuery('category', array(
	'condition' => array(
		'zone' => 'city',
		'display' => 'Y',
),
	'order' => 'ORDER BY sort_order DESC',
));

}-->

     <!--{if ($shangquan)}-->	
       <!--{loop $shangquan $one_sq}-->
         <!--${
              $daytime = time();
              $one_sq_id = $one_sq['id'];
              $condition_ev56_s3 = " city_id = $one_sq_id and  end_time > $daytime and begin_time <  $daytime";
              $ev56_num_3 = Table::Count('team', $condition_ev56_s3);
		 }-->

<li class="s-has-sub" ><a data-count="{$ev56_num_3}" href="index.php?city={$one_sq['id']}">{$one_sq['name']}</a></li>

<!--{/loop}-->

<!--{/if}-->
</ul>

</section>
<!--城市-->

<script type="text/javascript">

$(document).ready(function() {

	$("#city").click(function(){
		 $("#city_list").toggleClass("cblock").siblings().removeClass("cblock");
		 //alert($("#city_list").attr("class"));	
		  if($("#city_list").attr("class") == "j-area w-sort__2col cblock"){
		      $(".w-sort__mask").addClass("cblock")  
		  }else{
			  $(".w-sort__mask").removeClass("cblock");
		  }
	});
	
});
</script>